package xyz.iguilty.documents.starter;

import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import xyz.iguilty.documents.doc.view.WordTemplateViewResolver;

@Configuration
@EnableConfigurationProperties(WordProperties.class)//使ConfigurationProperties生效
public class WordAutoConfiguration {
    @Bean
    public WordTemplateViewResolver wordTemplateViewResolver(WordProperties wordProperties){
        WordTemplateViewResolver resolver = new WordTemplateViewResolver(wordProperties);
        resolver.setOrder(1992030702);
        return resolver;
    }
}
